#coding:utf8
import ConfigParser
config = ConfigParser.ConfigParser()
config.readfp(open('config.ini', "rb"))

 
g_adsl_account = {"name": config.get("adsl", "name"),
                "username": config.get("adsl", "username"),
                "password": config.get("adsl", "password")}


TimeLimit=int(float(config.get("global", "TimeLimit"))*60)
BROW_NUM=int(config.get("global", "BROW_NUM"))
TASK_NUM=int(config.get("global", "TASK_NUM"))
NODE=config.get("global", "NODE")
TASK_URL=config.get("global", "TASK_URL")+'?node=%s&num=%s'%(NODE,TASK_NUM)
POST_URL=config.get("global", "POST_URL")

if __name__=='__main__':
    print g_adsl_account
    print TimeLimit
    print BROW_NUM
    print TASK_NUM
    print NODE
    print TASK_URL
    print POST_URL
